




from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
chrome_driver = "chromedriver.exe"
chrome_options.binary_location = chrome_driver

driver = webdriver.Chrome(options = chrome_options)
print(driver.title)
driver.get("https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html")

# options = Options()
# options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
# driver = webdriver.Chrome(options = options)
#
# driver.get('https://www.163.com')

# chrome_options = webdriver.ChromeOptions()
#
# chromeOptions = webdriver.ChromeOptions()
# chrome_options.binary_location = r"D:\code\WeChatOpenDevTools-Python\chromedirver_test\chromedriver.exe"
# chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:13888")
# driver = webdriver.Chrome(options = chrome_options)
#
# driver.get('https://www.163.com')